import request from '@/utils/request'

export function getTransferList(query) {
  return request({
    url: '/finance/transfer/getList',
    method: 'post',
    data: query
  })
}
export function getTransferUseable(query) {
  return request({
    url: '/finance/transfer/getAvailable',
    method: 'post',
    data: query
  })
}

export function getTransferDetail(id) {
  return request({
    url: '/finance/transfer/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveTransfer(id) {
  return request({
    url: '/finance/transfer/save',
    method: 'post',
    data: id
  })
}

export function removeTransferByID(id) {
  return request({
    url: '/finance/transfer/delete',
    method: 'post',
    data: id
  })
}

export function changeTransferStatusByID(formdata) {
  return request({
    url: '/finance/transfer/change-status',
    method: 'post',
    data: formdata
  })
}

export function getTransferAddress(formdata) {
  return request({
    url: '/finance/transfer/getAddress',
    method: 'post',
    data: formdata
  })
}



